import { Inter } from 'next/font/google'
import { ChakraProvider } from '@/providers/ChakraProvider'
import './globals.css'
import '@/styles/editor.css'
import '@/styles/sidebar.css'

const inter = Inter({ subsets: ['latin'], variable: '--font-inter' })

export const metadata = {
  title: 'NovelAI - 智能写作助手',
  description: '使用AI辅助的小说写作工具',
}

export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html lang="zh-CN">
      <body className={inter.className}>
        <ChakraProvider>
          {children}
        </ChakraProvider>
      </body>
    </html>
  )
}
